import request from '@/utils/request'


//  查询险种列表
export function queryInsuranceTypeList(params) {
  return request({
    url: '/business/insuranceType/orderInsuranceType/list',
    method: 'get',
    params
  })
}

//  获取险种详情
export function getInsuranceTypeInfo(params) {
  return request({
    url: '/business/insuranceType/orderInsuranceType/getDetail',
    method: 'get',
    params
  })
}

//  增加险种
export function addInsuranceType(data) {
  return request({
    url: '/business/insuranceType/orderInsuranceType/addData',
    method: 'post',
    data
  })
}

//  修改险种
export function updateInsuranceType(data) {
  return request({
    url: '/business/insuranceType/orderInsuranceType/updateData',
    method: 'put',
    data
  })
}

// 删除险种
export function delInsuranceType(params) {
  return request({
    url: `/business/insuranceType/orderInsuranceType/deleteData`,
    method: 'delete',
    params
  })
}
